import base from './base';

// eslint-disable-next-line @typescript-eslint/class-name-casing
export default class RankApi extends base {
  /**
   * 保存成绩
   */
  static saveScore(param: any) {
    return this.post('/rank/save', param);
  }

  /**
   * 分页查询排名列表
   */
  static list(param: any) {
    return this.get(`/rank/list?type=${param.type}&level=${param.level}`);
  }
}
